package com.cx.bank.dao;


import com.cx.bank.pojo.User;

import java.sql.SQLException;
import java.util.List;

/**
 * @author jxau_scf
 * @date 2021/7/14 - 9:16
 */
public interface BankDaoInterface {
    boolean insertUser(User user) throws SQLException;
    boolean updateMoney(String userName, double balance) throws SQLException;
    boolean updateUserFlag(String userName, int userFlag);
    boolean updateUser(User user);
    boolean deleteUserByUserId(Integer userId);
    User findByName(String userName) throws SQLException;
    User findUserByUserId(Integer userId) throws SQLException;
    User findUser(String userName, String password) throws SQLException;
    List<User> findAllUser() throws SQLException;
    int findUserIdByUserName(String userName) throws SQLException;
}
